import request from '@/utils/request'

// 查询任务类型列表
export function listGamerw(query) {
  return request({
    url: '/business/gamerw/list',
    method: 'get',
    params: query
  })
}

// 查询任务类型详细
export function getGamerw(id) {
  return request({
    url: '/business/gamerw/' + id,
    method: 'get'
  })
}

// 新增任务类型
export function addGamerw(data) {
  return request({
    url: '/business/gamerw',
    method: 'post',
    data: data
  })
}

// 修改任务类型
export function updateGamerw(data) {
  return request({
    url: '/business/gamerw',
    method: 'put',
    data: data
  })
}

// 删除任务类型
export function delGamerw(id) {
  return request({
    url: '/business/gamerw/' + id,
    method: 'delete'
  })
}
